<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>&quot;TP/Projet : Génération et annotation de blog BOYER Guillaume BIGNASCI Samuel&quot;: Référence de la classe BlogServicelmpl</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Logo_RTnational.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">&quot;TP/Projet : Génération et annotation de blog BOYER Guillaume BIGNASCI Samuel&quot;
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Liste&#160;des&#160;classes</span></a></li>
      <li><a href="classes.html"><span>Index&#160;des&#160;classes</span></a></li>
      <li><a href="hierarchy.html"><span>Hiérarchie&#160;des&#160;classes</span></a></li>
      <li><a href="functions.html"><span>Membres&#160;de&#160;classe</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Fonctions membres publiques</a> &#124;
<a href="#pub-attribs">Attributs publics</a> &#124;
<a href="class_blog_servicelmpl-members.html">Liste de tous les membres</a>  </div>
  <div class="headertitle">
<div class="title">Référence de la classe BlogServicelmpl</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Graphe d'héritage de BlogServicelmpl:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_blog_servicelmpl.png" usemap="#BlogServicelmpl_map" alt=""/>
  <map id="BlogServicelmpl_map" name="BlogServicelmpl_map">
<area href="interface_blog_service.html" alt="BlogService" shape="rect" coords="0,0,103,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Fonctions membres publiques</h2></td></tr>
<tr class="memitem:a07eff8cdd297bc546dd61f046a9a6a86"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a07eff8cdd297bc546dd61f046a9a6a86"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>__construct</b> ($BlogTitle)</td></tr>
<tr class="separator:a07eff8cdd297bc546dd61f046a9a6a86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95e859a4588a39a1824b717378a84c29"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_blog_servicelmpl.html#a95e859a4588a39a1824b717378a84c29">getTitle</a> ()</td></tr>
<tr class="separator:a95e859a4588a39a1824b717378a84c29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51e3da554b0dfc62ecc7ae8dd7402264"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_blog_servicelmpl.html#a51e3da554b0dfc62ecc7ae8dd7402264">post</a> ($<a class="el" href="interface_publishable.html">Publishable</a>)</td></tr>
<tr class="separator:a51e3da554b0dfc62ecc7ae8dd7402264"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab20ac3660e2d867b235b004bd3950ec3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_blog_servicelmpl.html#ab20ac3660e2d867b235b004bd3950ec3">getItems</a> ()</td></tr>
<tr class="separator:ab20ac3660e2d867b235b004bd3950ec3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92277e8cac0aad38cd764456348d859e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_blog_servicelmpl.html#a92277e8cac0aad38cd764456348d859e">getPublishableItemsCount</a> ()</td></tr>
<tr class="separator:a92277e8cac0aad38cd764456348d859e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a170258ebdb2f7450f97ef3536c135392"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_blog_servicelmpl.html#a170258ebdb2f7450f97ef3536c135392">getTaggableItemsCount</a> ()</td></tr>
<tr class="separator:a170258ebdb2f7450f97ef3536c135392"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d04d4fa55e34f26e4900af596b0aaa6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_blog_servicelmpl.html#a7d04d4fa55e34f26e4900af596b0aaa6">findItemsByAuthor</a> ($auteur)</td></tr>
<tr class="separator:a7d04d4fa55e34f26e4900af596b0aaa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6190088609059027bebf62bc9d5e962"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_blog_servicelmpl.html#ae6190088609059027bebf62bc9d5e962">getLatestItem</a> ()</td></tr>
<tr class="separator:ae6190088609059027bebf62bc9d5e962"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2466b574b34894fc7fe9c2a0f3c4966a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_blog_servicelmpl.html#a2466b574b34894fc7fe9c2a0f3c4966a">findItemsByTags</a> ($listtag)</td></tr>
<tr class="separator:a2466b574b34894fc7fe9c2a0f3c4966a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f2e127232c38f7d5f099fdd3b855ff1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f2e127232c38f7d5f099fdd3b855ff1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>findItemsByContent</b> ($content)</td></tr>
<tr class="separator:a1f2e127232c38f7d5f099fdd3b855ff1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_interface_blog_service"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_interface_blog_service')"><img src="closed.png" alt="-"/>&#160;Fonctions membres publiques hérités de <a class="el" href="interface_blog_service.html">BlogService</a></td></tr>
<tr class="memitem:abfd4a8f3b5bb47a9e89f9604602fc571 inherit pub_methods_interface_blog_service"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abfd4a8f3b5bb47a9e89f9604602fc571"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>PublishableItemsCount</b> ()</td></tr>
<tr class="separator:abfd4a8f3b5bb47a9e89f9604602fc571 inherit pub_methods_interface_blog_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18857a974b39c25ed1513d4d3e7486a3 inherit pub_methods_interface_blog_service"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a18857a974b39c25ed1513d4d3e7486a3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>findItemsByAuthor</b> ()</td></tr>
<tr class="separator:a18857a974b39c25ed1513d4d3e7486a3 inherit pub_methods_interface_blog_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c732d35d88d7b5fefa18cdbf1eab9d2 inherit pub_methods_interface_blog_service"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c732d35d88d7b5fefa18cdbf1eab9d2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>findItemsByTagsOrContent</b> ($tagcar)</td></tr>
<tr class="separator:a1c732d35d88d7b5fefa18cdbf1eab9d2 inherit pub_methods_interface_blog_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Attributs publics</h2></td></tr>
<tr class="memitem:a36ca309c40389f3781b9a6070b08a536"><td class="memItemLeft" align="right" valign="top">if(nb_post=0)&#160;</td><td class="memItemRight" valign="bottom"><b>else</b></td></tr>
<tr class="separator:a36ca309c40389f3781b9a6070b08a536"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Description détaillée</h2>
<div class="textblock"><p>La classe <a class="el" href="class_blog_servicelmpl.html">BlogServicelmpl</a> réalise l'interface <a class="el" href="interface_blog_service.html">BlogService</a>. Elle doit:</p>
<p>-conserver le titre du blog (type string) et la liste de tous les billets publiés sur le blog (type array).</p>
<p>-définir un constructeur dont le paramètre est le nom du blog.</p>
<p>-définir les méthode de l'interface <a class="el" href="interface_blog_service.html">BlogService</a>.</p>
<p>Les méthodes retournant une liste ne doivent pas retourner une référence NULL. Si il n'y a pas d'éléments à retourner, alors une liste vide doit être retournée. Le billet le plus récent est celui dont la date de publication est la plus élevée. </p>
</div><h2 class="groupheader">Documentation des fonctions membres</h2>
<a class="anchor" id="a7d04d4fa55e34f26e4900af596b0aaa6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">findItemsByAuthor </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$auteur</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>La méthode findItemsByAuthor() dont le paramètre est le nom d'un auteur et dont le type de retour est une liste, permet de consulter la liste des billets rédigés par un auteur donné. </p>

</div>
</div>
<a class="anchor" id="a2466b574b34894fc7fe9c2a0f3c4966a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">findItemsByTags </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$listtag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>La méthode <a class="el" href="class_blog_servicelmpl.html#a2466b574b34894fc7fe9c2a0f3c4966a">findItemsByTags()</a> dont le paramètre est un tableau de tag, dont le type de retour est une liste de billets, permet de consulter les billets dont le tag est passé en paramètre. </p>

<p>Implémente <a class="el" href="interface_blog_service.html">BlogService</a>.</p>

</div>
</div>
<a class="anchor" id="ab20ac3660e2d867b235b004bd3950ec3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getItems </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>La méthode <a class="el" href="class_blog_servicelmpl.html#ab20ac3660e2d867b235b004bd3950ec3">getItems()</a> sans paramètre, dont le type de retour est une liste, permet d'obtenir la liste de billets publiés sur le blog. </p>

<p>Implémente <a class="el" href="interface_blog_service.html">BlogService</a>.</p>

</div>
</div>
<a class="anchor" id="ae6190088609059027bebf62bc9d5e962"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getLatestItem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>La méthode getLatestItems sans paramètres, dont le type de retour est un billet, permet d'obtenir le billet le plus récent. </p>

<p>Implémente <a class="el" href="interface_blog_service.html">BlogService</a>.</p>

</div>
</div>
<a class="anchor" id="a92277e8cac0aad38cd764456348d859e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getPublishableItemsCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>La méthode PublishableItemsCount() sans paramètre, dont le type de retour est une valeur entière, permet de connaître le nombre de billets sur le blog. </p>

</div>
</div>
<a class="anchor" id="a170258ebdb2f7450f97ef3536c135392"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getTaggableItemsCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>La méthode <a class="el" href="class_blog_servicelmpl.html#a170258ebdb2f7450f97ef3536c135392">getTaggableItemsCount()</a> sans paramètre, dont le type de retour est est une valeur entière, permet de connaître le nombre de billets publiés aux quels l'on peut rajouter des tags. </p>

<p>Implémente <a class="el" href="interface_blog_service.html">BlogService</a>.</p>

</div>
</div>
<a class="anchor" id="a95e859a4588a39a1824b717378a84c29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getTitle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>La méthode <a class="el" href="class_blog_servicelmpl.html#a95e859a4588a39a1824b717378a84c29">getTitle()</a> sans paramètre, permet de donner le titre du blog. </p>

<p>Implémente <a class="el" href="interface_blog_service.html">BlogService</a>.</p>

</div>
</div>
<a class="anchor" id="a51e3da554b0dfc62ecc7ae8dd7402264"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">post </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$Publishable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>La méthode <a class="el" href="class_blog_servicelmpl.html#a51e3da554b0dfc62ecc7ae8dd7402264">post()</a> dont le paramètre est un billet du même type que <a class="el" href="interface_publishable.html">Publishable</a>, sans retour, permettant de de publier un nouveau billet. </p>

<p>Implémente <a class="el" href="interface_blog_service.html">BlogService</a>.</p>

</div>
</div>
<h2 class="groupheader">Documentation des données membres</h2>
<a class="anchor" id="a36ca309c40389f3781b9a6070b08a536"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">if (nb_post=0) else</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Valeur initiale :</b><div class="fragment"><div class="line">{ </div>
<div class="line">            <span class="keywordflow">for</span> ($i=1, $i&lt;=$this-&gt;nb_post, $i++){</div>
<div class="line">                <span class="keywordflow">if</span> ($this-&gt;Post($i)-&gt;getContent()== implode(<span class="stringliteral">&quot; &quot;</span>, $content)){</div>
<div class="line">                    $this-&gt;ByContent($i)=$this-&gt;Post($i);</div>
<div class="line">                }</div>
<div class="line">            }</div>
<div class="line">            <span class="keywordflow">return</span> print_r($this-&gt;ByContent)</div>
</div><!-- fragment -->
</div>
</div>
<hr/>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>Blog/BlogServicelmpl.php</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Généré le Mardi 22 Avril 2014 21:19:45 pour &quot;TP/Projet : Génération et annotation de blog BOYER Guillaume BIGNASCI Samuel&quot; par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
